
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<jsp:include page="/common/commonCss.jsp"/>
<jsp:include page="/common/commonJs.jsp"/>
<script type="text/javascript">
$(document).ready(function() {
	var x = "${index.isBranch}";
	if(x == '1'){
		var defalFloorNum = "${index.defailFloorNum}";
		var floorNum = "${index.floorNum}";
		setFloorNum(floorNum,defalFloorNum);
	}
});

function setFloorNum(floorNum,defalFloorNum){
	var num = parseInt(floorNum);
	var num2 = parseInt(defalFloorNum);
	$("#floorNum").text(num);
	if(num > num2){
		shake($("#floorNum"),"red",50);
	}
	/* if(num < num2){
		$("#floorNum").text(floorNum);
	}else if(floorNum > defalFloorNum){
		$("#floorNum").text(defalFloorNum);
		shake($("#floorNum"),"red",50);
	} */
}

function shake(ele,cls,times){
	var i = 0,t= false ,o =ele.attr("class")+" ",c ="",times=times||2;
	if(t) return;
	t= setInterval(function(){
		i++;
		c = i%2 ? o+cls : o;
		ele.attr("class",c);
		if(i==2*times){
			clearInterval(t);
			ele.removeClass(cls);
			}
		},500);
}
</script>
<title>嘉童游乐中心</title>
</head>
<body class="bg">
<div class="content m_auto">
	<%@include file="indexPage/index_tab.jsp"%>
    <div class="content_r mt10">
    <c:choose>
    	<c:when test="${index.isBranch == '1'}">
    		<div class="index_b fl">
        <table class="table">
        	<tr>
            	<td colspan="4" ><table style="width:100%;border:0px;">
                    	<tr>
                        	<td style="text-align:left;border:0px"><i class="laoz_icon"></i><b>待确认的派对团体（5日内将要举办的派对团体）</b></td>
                            <td style="text-align:right;border:0px"><b><a href="${basePath }parreserve/parReserveManages.shtml?indexflag=1" class="fr">更多...</a></b></td>
                        </tr>
                	</table></td>
            </tr>
            <tr>
                <th>派对/团体</th>
                <th>时间</th>
                <th>主题</th>
                <th>联系人</th>
            </tr>
            <c:forEach items="${ index.indexNoConfirm}" var="noConfirm">
            	<tr>
	                <td class="lv"><a href="${basePath }parreserve/parReserveManagesDetail.shtml?pkParresId=${noConfirm.pkParresId }&grpFlag=${noConfirm.grpFlag }">${noConfirm.pkParresId }</a></td>
	                <td>${noConfirm.holdDate }</td>
	                <td>${noConfirm.subject }</td>
	                <td title="${noConfirm.conInfo}">
						<c:if test="${noConfirm.conInfo != null}">
							<c:choose>
								<c:when test="${noConfirm.conInfo.length() > 15}">
											${noConfirm.conInfo.substring(0,15)}...
								</c:when>
								<c:otherwise>
											${noConfirm.conInfo}
								</c:otherwise>
							</c:choose>
						</c:if>
					 </td>
            	</tr>
            </c:forEach>
        </table>
        <table class="table mt10">
        	<tr>
            	<td colspan="4"><table style="width:100%;border:0px;">
                    	<tr>
                        	<td style="text-align:left;border:0px"><i class="laoz_icon"></i><b>预约后24小时内未预付的团体</b></td>
                            <td style="text-align:right;border:0px"><b><a href="${basePath }parreserve/parReserveManages.shtml?indexflag=2" class="fr">更多...</a></b></td>
                        </tr>
                	</table></td>
            </tr>
            <tr>
                <th>团体</th>
                <th>时间</th>
                <th>主题</th>
                <th>联系人</th>
            </tr>
            <c:forEach items="${ index.indexNoPay}" var="noPay">
            	<tr>
	                <td class="lv"><a href="${basePath }parreserve/parReserveManagesDetail.shtml?pkParresId=${noPay.pkParresId }&grpFlag=${noPay.grpFlag }">${noPay.pkParresId }</a></td>
	                <td>${noPay.holdDate }</td>
	                <td>${noPay.subject }</td>
	                 <td title="${noPay.conInfo}">
						<c:if test="${noPay.conInfo != null}">
							<c:choose>
								<c:when test="${noPay.conInfo.length() > 15}">
											${noPay.conInfo.substring(0,15)}...
								</c:when>
								<c:otherwise>
											${noPay.conInfo}
								</c:otherwise>
							</c:choose>
						</c:if>
					 </td>
            	</tr>
            </c:forEach>
        </table>
        <table class="table mt10">
        	<tr>
            	<td colspan="4" ><table style="width:100%;border:0px;">
                    	<tr>
                        	<td style="text-align:left;border:0px"><i class="laoz_icon"></i><b>即将到期会员</b></td>
                            <td style="text-align:right;border:0px"><b><a href="${basePath}filemanagement/listVip.shtml?type=1&indexEndDate=indexEndDate" class="fr">更多...</a></b></td>
                        </tr>
                	</table></td>
            </tr>
            <tr>
                <th>会员</th>
                <th>姓名</th>
                <th>监护人电话</th>
                <th>到期日期</th>
            </tr>
             <c:forEach items="${ index.indexEndMem}" var="endMem">
             	<tr>
	                <td class="lv"><a href="${basePath }filemanagement/getVipUserDetail.shtml?memberId=${endMem.pkMemId }&type=1">${endMem.pkMemId }</a></td>
	                <td>${endMem.memName }</td>
	                <td title="${endMem.conInfo}">
						<c:if test="${endMem.conInfo != null}">
							<c:choose>
								<c:when test="${endMem.conInfo.length() > 15}">
											${endMem.conInfo.substring(0,15)}...
								</c:when>
								<c:otherwise>
											${endMem.conInfo}
								</c:otherwise>
							</c:choose>
						</c:if>
					 </td>
	                <td>${endMem.holdDate }</td>
            	</tr>
             </c:forEach>
        </table>
        <table class="table mt10">
       		 <tr>
            	<td colspan="4" ><table style="width:100%;border:0px;">
                    	<tr>
                        	<td style="text-align:left;border:0px"><i class="laoz_icon"></i><b>近期生日会员</b></td>
                            <td style="text-align:right;border:0px"><b><a href="${basePath}filemanagement/listVip.shtml?type=1&indexBirth=indexBirth" class="fr">更多...</a></b></td>
                        </tr>
                	</table></td>
            </tr>
            <tr>
                <th>会员</th>
                <th>姓名</th>
                <th>监护人电话</th>
                <th>生日</th>
            </tr>
             <c:forEach items="${ index.indexBirthdayMem}" var="birthdayMem">
             	<tr>
	                <td class="lv"><a href="${basePath }filemanagement/getVipUserDetail.shtml?memberId=${birthdayMem.pkMemId }&type=1">${birthdayMem.pkMemId }</a></td>
	                <td>${birthdayMem.memName }</td>
	                 <td title="${birthdayMem.conInfo}">
						<c:if test="${birthdayMem.conInfo != null}">
							<c:choose>
								<c:when test="${birthdayMem.conInfo.length() > 15}">
											${birthdayMem.conInfo.substring(0,15)}...
								</c:when>
								<c:otherwise>
											${birthdayMem.conInfo}
								</c:otherwise>
							</c:choose>
						</c:if>
					 </td>
	                <td>${birthdayMem.holdDate }</td>
            	</tr>
             </c:forEach>
        </table>
    </div>
    
    <div class="index_c fl">
    	<div class="div_1"><font class="p10 fixed"><i class="lind_icon"></i>场内人数：<b class="f24" id="floorNum"></b></font></div>
        <br />
        <table class="table">
        	 <tr>
            	<td colspan="3" ><table style="width:100%;border:0px;">
                    	<tr>
                        	<td style="text-align:left;border:0px"><i class="lind_icon"></i><b>库存数量</b></td>
                            <td style="text-align:right;border:0px"><b><a href="${basePath }StockQuery/toStockQuery.shtml" class="fr">更多...</a></b></td>
                        </tr>
                	</table></td>
            </tr>
            <tr>
                <th>商品名称</th>
                <th>最低库存量</th>
                <th>实际库存量</th>
            </tr>
             <c:forEach items="${ index.indexScmCount}" var="scmCount">
             <tr>
            	<td>${scmCount.prdName }</td>
            	<c:choose>
            		<c:when test="${scmCount.stgCnt > scmCount.minStorage}">
            			<td>${scmCount.minStorage }</td>
                		<td>${scmCount.stgCnt }</td>
            		</c:when>
            		<c:otherwise>
            			<td><font color="red">${scmCount.minStorage }</font></td>
                		<td><font color="red">${scmCount.stgCnt }</font></td>
            		</c:otherwise>
            	</c:choose>
            </tr>
            </c:forEach>
        </table>
        <table class="table mt10">
        <tr>
            	<td colspan="5">
                	<table style="width:100%;border:0px;">
                    	<tr>
                        	<td style="text-align:left;border:0px"><i class="honq_icon"></i><b>我的待办</b></td>
                            <td style="text-align:right;border:0px"><b><a href="${basePath }system/index/findTodoTask.shtml" class="fr">更多...</a></b></td>
                        </tr>
                	</table>
                </td>
            </tr>
            <tr>
                <th>工单</th>
                <th>流程</th>
                <th>待办事项</th>
                <th>姓名</th>
            </tr>
            <c:forEach items="${index.indexTodoTask }" var="todoTask">
            	<tr>
            	<td class="lv"><a href="${basePath }system/index/jumpWorkflow.shtml?businessKey=${todoTask.businessKey }&key=${todoTask.key }">${todoTask.businessKey }</a></td>
                <td>${todoTask.procDefName }</td>
                <td>${todoTask.activityName }</td>
                <td>${todoTask.userName }</td>
            	</tr>
            </c:forEach>
        </table>
        <table class="table mt10">
        	<tr>
            	<td colspan="5" ><table style="width:100%;border:0px;">
                    	<tr>
                        	<td style="text-align:left;border:0px"><i class="daib_icon"></i><b>我的已办</b></td>
                            <td style="text-align:right;border:0px"><b><a href="${basePath }system/index/findFinishTask.shtml" class="fr">更多...</a></b></td>
                        </tr>
                	</table></td>
            </tr>
            <tr>
                <th>工单</th>
                <th>流程</th>
                <th>状态</th>
                <th>姓名</th>
                <th>最近处理时间</th>
            </tr>
            <c:forEach items="${index.indexFinishTask }" var="finishTask">
            	<tr>
            	<td class="lv"><a href="${basePath }system/index/jumpWorkflow.shtml?businessKey=${finishTask.businessKey }&key=${finishTask.key }">${finishTask.businessKey }</a></td>
                <td>${finishTask.procDefName }</td>
                <td>${finishTask.message }</td>
                <td>${finishTask.userName }</td>
                <td>${finishTask.holdDate }</td>
            	</tr>
            </c:forEach>
        </table>
    </div>
    	</c:when>
    	
    	<c:otherwise>
    		<div class="index_b fl">
        <table class="table mt10">
        <tr>
            	<td colspan="5">
                	<table style="width:100%;border:0px;">
                    	<tr>
                        	<td style="text-align:left;border:0px"><i class="honq_icon"></i><b>我的待办</b></td>
                            <td style="text-align:right;border:0px"><b><a href="${basePath }system/index/findTodoTask.shtml" class="fr">更多...</a></b></td>
                        </tr>
                	</table>
                </td>
            </tr>
            <tr>
                <th>工单</th>
                <th>流程</th>
                <th>待办事项</th>
                <th>姓名</th>
            </tr>
            <c:forEach items="${index.indexTodoTask }" var="todoTask">
            	<tr>
            	<td class="lv"><a href="${basePath }system/index/jumpWorkflow.shtml?businessKey=${todoTask.businessKey }&key=${todoTask.key }">${todoTask.businessKey }</a></td>
                <td>${todoTask.procDefName }</td>
                <td>${todoTask.activityName }</td>
                <td>${todoTask.userName }</td>
            	</tr>
            </c:forEach>
        </table>
    </div>
    <div class="index_c fl">
        <table class="table mt10">
        	<tr>
            	<td colspan="5" ><table style="width:100%;border:0px;">
                    	<tr>
                        	<td style="text-align:left;border:0px"><i class="daib_icon"></i><b>我的已办</b></td>
                            <td style="text-align:right;border:0px"><b><a href="${basePath }system/index/findFinishTask.shtml" class="fr">更多...</a></b></td>
                        </tr>
                	</table></td>
            </tr>
            <tr>
                <th>工单</th>
                <th>流程</th>
                <th>状态</th>
                <th>姓名</th>
                <th>最近处理时间</th>
            </tr>
            <c:forEach items="${index.indexFinishTask }" var="finishTask">
            	<tr>
            	<td class="lv"><a href="${basePath }system/index/jumpWorkflow.shtml?businessKey=${finishTask.businessKey }&key=${finishTask.key }">${finishTask.businessKey }</a></td>
                <td>${finishTask.procDefName }</td>
                <td>${finishTask.message }</td>
                <td>${finishTask.userName }</td>
                <td>${finishTask.holdDate }</td>
            	</tr>
            </c:forEach>
        </table>
    </div>
    	</c:otherwise>
    </c:choose>
</div>
 </div>
</body>
</html>